Intersoft WebTextEditor Documentation
How-to: Use WebTextEditor as Item Template of DetailsView
See Also Send Feedback
Intersoft WebTextEditor > WebTextEditor > Data Binding > How-to: Use WebTextEditor as Item Template of DetailsView

Glossary Item Box

WebTextEditor could be used as an item template in DetailsView control.

In this topic, you will learn how to use WebTextEditor as Item Template.

To use WebTextEditor as Item Template in DetailsView

  1. Create a DetailsView with employee data bound from the Northwind.mdb.
  2. Set the Notes field to ItemTemplate and change to edit template view mode.
  3. Drag WebTextEditor control from the Toolbox to the ItemTemplate and InsertItemTemplate of DetailsView.
  4. Set the EnableHTMLView property to false and EnableSplitView property to false under ViewSettings for both WebTextEditor in order to have a simpler look.
  5. Set the content property in WebTextEditor to bind the DetailsView field in the source view. Here is the snippet:

    <ISWebTextEditor:WebTextEditor ID="WebTextEditor1" runat="server" Height="200px" Width="500px" Content='<%# Bind("Notes") %>'
    .
    .
    .                      
    </ISWebTextEditor:WebTextEditor>

See Also

©2013. All Rights Reserved.